@import './variables.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, "PingFang SC", "Microsoft YaHei";
}

html {
  height: 100%;
  // box-sizing属性不可继承
  box-sizing: border-box;
}

#app {
  height: 100%;
  color: $--regular-text;
}

// 带纵向滚动条的长页面
.long-page {
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}

// 带border的页面
.card-page {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: $--card-radius;
  padding: 20px;
  box-sizing: border-box;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// 小圆点
.span-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 4px;
}

.conditions-box {
  // margin-bottom: 12px;
  font-size: 14px;
  color: #333333;
  display: flex;
  justify-content: space-between;
}

// 分页样式
.pag-wrapper {
  margin-top: 12px;
  text-align: right;

  .el-pagination__sizes {
    float: left;
  }
}


// 滚动条
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}

*::-webkit-scrollbar-track {
  background-color: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #E8EAEA;
  border-radius: 76px;
}

// 标题 Regular === normal === 400
.h1-title {
  font-size: 18px;
}

.h2-title {
  font-size: 16px;
}

.h3-title {
  font-size: 14px;
}

// 页面头部标题
.common-title {
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

// fade动画
.fade-enter-active,
.fade-leave-active {
  transition: all 0.4s;
}

.fade-enter,
.fade-leave-to {
  height: 0;
}

// 图标
.icon-pinkgreen {
  border: 1px solid $--pink-green;
  background-color: $--pink-green-bg;
}

.icon-pinkblue {
  border: 1px solid $--pink-blue;
  background-color: $--pink-blue-bg;
}

.icon-lightgreen {
  border: 1px solid $--light-green;
  background-color: $--light-green-bg;
}

// leaflet 样式
.leaflet-container.pointer-cursor {
  cursor: pointer;
}

.leaflet-container.crosshare-cursor {
  cursor: crosshair;
}

.leaflet-container.default-cursor {
  cursor: default;
}

.danger {
  color: $--danger-color
}

.popover-danger {
  margin-left: 10px;
  color: $--danger-color
}

.popover-danger:hover {
  color: $--danger-color
}

.popover-danger:active {
  color: $--danger-color
}